博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
PHP phpcms
阅读量:5842 次
发布时间:2019-06-18

本文共 14562 字,大约阅读时间需要 48 分钟。

文件存放位置

install_package -> phpcms -> languages(语言包)

-> libs(系统的类)
-> model(模型)
-> plugin(插件)
-> templates(模板文件夹*) -> default(系统默认模板文件夹)-> content(主要使用的内容)
install_package -> statics(*) -> css/js/images/plugin
install_package -> uploadfile(上传的文件)
install_package -> caches(缓存文件)

 

header.html

{<div></div> if isset($SEO['title']) && !empty($SEO['title'])}{<div></div> $SEO['title']}{/if}{<div></div> $SEO['site_title']}
天启网络发展有限公司

 

 

 

top.css

@charset "utf-8";/* CSS Document */.logo{    float:left;    width:200px;    height:80px;    margin-left:30px;    margin-top:10px;}.ming{    float:left;    margin-left:10px;    margin-top:50px;    font-weight:bold;    font-size:16px;    color:#0071ba;}.menu{    text-align:center;    width:100%;    height:50px;    font-size:18px;    font-weight:bold;    margin-top:0px;    color:#FFF;    background-color:#0071ba;}.list{    line-height:50px;    vertical-align:middle;    width:180px;    height:50px;}#list{    float:left;     margin-left:200px;}.menus{    float:left;}.erji{    height:105px;    width:180px;    position:relative;    display:none;    }.erjis{    line-height:35px;    vertical-align:middle;    height:35px;    width:180px;    font-size:16px;    background-color:#F30;}.ab:link{    color:#FFF;    text-decoration:none;}.ab:visited{    color:#FFF;    text-decoration:none;}.ab:hover{    color:#FF0;    text-decoration:none;}.ab:active{    color:#FF0;    text-decoration:none;}.bottom{    width:1350px;    height:150px;    background-color:#0071ba;    text-align:center;    color:#FFF;}.a{    padding-top:50px;}.b{    padding-top:10px;}

 footer.html

天启网络发展有限公司版权所有 鲁ICP备12345678号
山东省淄博市张店共青团西路23号(原淄博市房管局大楼)A座4层 电话:0533-3113118

 index.html

{template "content","header"}
{pc:content action="position" posid="18" order="listorder DESC" thumb="1" num="3"} {loop $data $r}
{
/loop} {
/pc}
最新公告
7月12日,天启网络与纵横科技签署合作协议。依据协议,双方 将建立平等互利、优势互补、资源共享、合作共赢的战略合作伙 伴关系,共同推动网络科技产业开放、创新、融合。
{ $CATEGORYS[10]['catname']}
{pc:content action="lists" catid="10" order="updatetime DESC" num="6" return="info"} {loop $info $n}
  .  {str_cut($n['title'],92)}
{
/loop} {
/pc}
{ $CATEGORYS[6]['catname']}
{pc:content action="lists" catid="6" order="updatetime DESC" num="6" return="infos"} {loop $infos $m}
  .  {str_cut($m['title'],92)}
{
/loop} {
/pc}
{pc:content action="position" posid="19" order="listorder DESC" thumb="1" num="3" return="data1"} {loop $data1 $v}
{
/loop} {
/pc}
{
$CATEGORYS[11]['catname']}
{pc:content action="position" posid="21" order="listorder DESC" num="4" teturn="dat"} {loop $dat $t}
{str_cut($t['title'],32)}
{
$t['description']}
{
/loop} {
/pc}
{template "content","footer"}

index.css

@charset "utf-8";/* CSS Document */.{    text-align:center;}a:link{    color:#0071ba;    text-decoration:none;}a:visited{    color:#0071ba;    text-decoration:none;}a:hover{    color:#F30;    text-decoration:none;}a:active{    color:#F30;    text-decoration:none;}.b{    margin-left:50px;    width:1200px;    height:300px;}.lunbo{    display:none;}.c{    margin-left:50px;    width:1200px;    height:60px;    margin-top:10px;}.c1{    width:1200px;    height:30px;    color:#0071ba;    font-weight:bold;    background-color:#f4f4f4}.c11{    width:100px;    height:25px;    padding-top:5px;}.c2{}.d{    margin-left:50px;    width:1200px;    height:390px;    margin-top:10px;}.d1{    float:left;    width:390px;    height:390px;}.d11{    width:390px;    height:80px;}.d12{    width:390px;    height:330px;    margin-top:3px;}.d2{    float:left;    width:800px;    height:390px;    margin-left:10px;    text-align:left;}.d21{    width:800px;    height:230px;}.d211{    float:left;    width:500px;    height:230px;}.d212{    float:left;    width:290px;    height:230px;    margin-left:10px;}.d22{    width:800px;    height:165px;    margin-top:10px;}.lunbos{    display:none;}.e{    margin-left:50px;    width:1200px;    height:300px;    margin-top:35px;}.e1{    width:1200px;    height:35px;    background-color:#f4f4f4;}.e2{    margin-top:10px;    float:left;    width:300px;    height:300px;}.e21{    width:300px;    height:35px;    color:#0071ba;    font-weight:bold;    font-size:20px;}.e22{    width:300px;    height:150px;}.e23{    margin-top:15px;    width:300px;    height:50px;}.e24{    width:300px;    height:50px;    color:#0071ba;    margin-left:110px;    font-size:15px;}.z{    height:35px;    font-size:15px;    background-color:#f4f4f4;}.z1{    float:left;    width:100px;    height:25px;    font-size:20px;    margin-top:5px;    margin-left:10px;    font-weight:bold;    color:#0071ba;}.z2{    float:right;    margin-right:10px;    width:50px;    height:25px;    color:#0071ba;    font-size:15px;    margin-top:10px;}.z3{    padding-left:5px;    height:30px;    line-height:30px;    vertical-align:middle;    margin-top:3px;}

lunbo.js

// JavaScript Documentvar n=0;//当前要显示的图片索引var m=0;function ShowNow(){    var img=$(".lunbo");//找到所有class为lunbo的图片        //隐藏素有图片    img.css("display","none");    //显示第n条    img.eq(n).css("display","block");        if(n>=img.length-1)    {        n=0;    }    else    {        n++;        }        var imgs=$(".lunbos");//找到所有class为lunbo的图片        //隐藏素有图片    imgs.css("display","none");    //显示第n条    imgs.eq(m).css("display","block");        if(m>=imgs.length-1)    {        m=0;    }    else    {        m++;        }}//间隔多久执行一次window.setInterval("ShowNow()",1000);

 

category.html

{template "content","header"}
{
if $CATEGORYS[$catid]['parentid']==0}
{<div></div>   $catname} {
else}
{<div></div>   $catname} {/if}
栏目列表
{pc:content action="category" catid="$parentid" num="10" siteid="$siteid" order="listorder ASC" return="data1"} {loop $data1 $v}
{
$v[catname]}
{pc:content action="category" catid="$v[catid]" num="10" siteid="$siteid" order="listorder ASC" return="data"} {loop $data $r}
{
$r[catname]}
{
/loop} {
/pc} {
/loop} {
/pc}
{catpos($catid)}文章列表

{pc:content action="lists" catid="$catid" num="10" order="id DESC" page="$page"} {loop $data $r}
{
date('Y-m-d H:i:s',$r[inputtime])}--{
$r[title]}
{
/loop}
{
$pages}
{
/pc}
{template "content","footer"}

list.html

{template "content","header"}
{
if $CATEGORYS[$catid]['parentid']==0}
{<div></div>   $catname} {
else}
{<div></div>   $catname} {/if}
栏目列表
{pc:content action="category" catid="$parentid" num="10" siteid="$siteid" order="listorder ASC" return="data1"} {loop $data1 $v}
{
$v[catname]}
{pc:content action="category" catid="$v[catid]" num="10" siteid="$siteid" order="listorder ASC" return="data"} {loop $data $r}
{
$r[catname]}
{
/loop} {
/pc} {
/loop} {
/pc}
{catpos($catid)}文章列表

{pc:content action="lists" catid="$catid" num="10" order="id DESC" page="$page"} {loop $data $r}
{
date('Y-m-d H:i:s',$r[inputtime])}--{
$r[title]}
{
/loop}
{
$pages}
{
/pc}
{template "content","footer"}

list.css

/* CSS Document */.z{    width:1200px;    height:700px;    margin-left:70px;}.a{    width:1200px;    height:200px;}.b{    float:left;    width:230px;    line-height:30px;    margin-top:20px;    font-weight:bold;}.b1{    height:39px;    width:235px;    background-color:#f4f4f4;    font-size:20px;    line-height:39px;    vertical-align:middle;    font-weight:bold;    text-align:center;    color:#0071ba;}.b2{    margin-left:20px;    line-height:32px;    vertical-align:middle;    padding-top:5px;}.c{    padding-left:20px;    width:950px;    float:left;    margin-top:32px;}.c1{    font-weight:bold;}.c2{    width:800px;    margin-left:50px;    font-size:22px;}a:link{    color:#0071ba;    text-decoration:none;}a:visited{    color:#0071ba;    text-decoration:none;}a:hover{    color:#F30;    text-decoration:none;}a:active{    color:#F30;    text-decoration:none;}

show.html

{template "content","header"}
{
if $CATEGORYS[$catid]['parentid']==0}
{<div></div>   $catname} {
else}
{<div></div>   $catname} {/if}
相关文章
{pc:content action="lists" catid="$catid" num="10" order="id DESC" page="$page"} {loop $data $r}
{
$r[title]}
{
/loop}
{
$pages}
{
/pc}
{catpos($catid)}正文

{
$title}
来源:{
$copyfrom} 发布时间:{
$inputtime} 阅读次数:

{

$description}

{

$content}

{
$pages}
{template "content","footer"}

show.css

/* CSS Document */.z{    width:1200px;    margin-left:70px;}.a{    width:1200px;    height:200px;}.b{    float:left;    width:235px;    line-height:30px;    margin-top:20px;    font-size:14px;    font-weight:bold;}.b1{    height:39px;    width:235px;    background-color:#f4f4f4;    font-size:20px;    line-height:39px;    vertical-align:middle;    font-weight:bold;    text-align:center;    color:#0071ba;}.b2{    line-height:32px;    vertical-align:middle;    padding-top:5px;}.c{    padding-left:15px;    width:950px;    float:left;    margin-top:22px;}.c1{    font-weight:bold;}.c2{    font-weight:bold;    font-size:30px;    color:#0071ba;    text-align:center;}.c3{    color:#999;    height:60px;    line-height:60px;    vertical-align:middle;    text-align:center;}.c4{    width:950px;    margin-top:20px;    text-align:center;}.c5{    width:1200px;    height:100px;    margin-left:300px;    margin-top:35px;}a:link{    color:#0071ba;    text-decoration:none;}a:visited{    color:#0071ba;    text-decoration:none;}a:hover{    color:#F30;    text-decoration:none;}a:active{    color:#F30;    text-decoration:none;}

 

转载于:https://www.cnblogs.com/yy01/p/5694444.html

你可能感兴趣的文章
读取手机硬件信息
查看>>
一致哈希
查看>>
The connection to adb is down, and a severe error has occured. 问题解决
查看>>
在Jenkins中配置运行远程shell命令
查看>>
代码杂记
查看>>
linux中防CC攻击两种实现方法(转)
查看>>
《Programming WPF》翻译 第9章 4.模板
查看>>
Windows7+VS2012下OpenGL 4的环境配置
查看>>
Linux Kernel中断子系统来龙去脉浅析【转】
查看>>
Linux NFS服务器的安装与配置
查看>>
Ada boost学习
查看>>
Unity中SendMessage和Delegate效率比较
查看>>
Linux下EPoll通信模型简析
查看>>
react-native 制作购物车ShopCart
查看>>
Linux服务器 java生成的图片验证码乱码问题
查看>>
【转】QT中QDataStream中浮点数输出问题
查看>>
mongodb3.2配置文件yaml格式 详解
查看>>
centOS_5.4_安装Open×××
查看>>
Spring Security OAuth2 开发指南
查看>>
TCP
查看>>